
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--手动定义500错误--%>
<%@ page errorPage="500.jsp" %>
<%--手动定义成有错误页面--%>
<%@ page isErrorPage="true" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
        <%--这里是内置代码片段--%>
    <%@ include file="common/header.jsp"%>
        <h2>这里是主体部分</h2>
    <%@ include file="common/footer.jsp"%>

        <%--这里是jsp内置方法(jsp:include：拼接页面，本质还是三个)--%>
    <jsp:include page="common/header.jsp"/>
    <h2>这里是主体部分</h2>
    <jsp:include page="common/footer.jsp"/>
<%
//  int x=1/0;
    int x=1/1;
%>

</body>
</html>
